<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .modal {
            width: 300px;
            height: 300px;
            border: 1px solid #ccc;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 10px;
            overflow: hidden;
        }

        .modal header {
            height: 40px;
            line-height: 40px;
            background-color: #aaa;
            font-size: 16px;
            padding-left: 20px;
            color: #fff;
        }

        .modal.success header {
            background-color: green;
        }

        .modal.warning header {
            background-color: orange;
        }

        .modal.error header {
            background-color: red;
        }
    </style>
</head>
<body>
    <div class="wrapper">
        <div class="modal">
            <header>Modal</header>
        </div>
        <div class="btn-group">
            <button data-status="S">成功模态框</button>
            <button data-status="W">告警模态框</button>
            <button data-status="E">失败模态框</button>
        </div>
    </div>
    <script type="module" src="./factory/index.js"></script>
</body>
</html>